public class ContractCodeExample {
    public static void main(String[] args) {
        // 生成10个合同编码示例
        for (int i = 0; i < 10; i++) {
            String contractCode = ContractCodeGenerator.generate();
            System.out.println("生成的合同编码: " + contractCode);
            
            // 模拟时间间隔
            try {
                Thread.sleep(100);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
        
        // 测试序列号重置
        ContractCodeGenerator.resetSequence();
        System.out.println("重置后生成的编码: " + ContractCodeGenerator.generate());
    }
}